//
//  OCSSApplyOrderCell.swift
//  OCSSStoreSwift
//
//  Created by MacMiniKangChe on 2018/11/2.
//  Copyright © 2018年 MacMiniKangChe. All rights reserved.
//

import UIKit

class OCSSApplyOrderCell: UITableViewCell {

    @IBOutlet weak var orderTypeBtn: UIButton!
    @IBOutlet weak var orderNumLab: UILabel!
    @IBOutlet weak var creatTimeLab: UILabel!
    @IBOutlet weak var nameLab: UILabel!
    @IBOutlet weak var orderStatusLab: UILabel!
    @IBOutlet weak var supplyNameBtn: UIButton!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
    }
    var model:OCSSContentOrderListModel?{
        didSet{
            var billType = "";
            switch model?.BillType {
            case 1:
                billType = "采购";
                break;
            case 2:
                billType = "调拨";
                break;
            case 3:
                billType = "铺货";
                break;
            default:
                break;
            }
            orderTypeBtn.setTitle(billType, for: UIControlState.normal);
            orderNumLab.text = model?.ID;
            creatTimeLab.text = model?.Time;
            nameLab.text = model?.ProductName;
            supplyNameBtn.setTitle(model?.SupplierName, for: UIControlState.normal);
            orderStatusLab.text = model?.StatusType;
        }
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
